package com.ncs.pojo;

public class Person {
    private Integer Id;
    private String name;
    private String address;
    private String work;
    private Double sal;

    public void sheep(){
        System.out.println(this.name+"要睡午觉");
    }

    public void eat(){
        System.out.println(this.name+"吃中餐");
    }

    public Person() {
    }

    public Person(Integer id, String name, String address, String work, Double sal) {
        Id = id;
        this.name = name;
        this.address = address;
        this.work = work;
        this.sal = sal;
    }

    public Integer getId() {
        return Id;
    }

    public void setId(Integer id) {
        Id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public Double getSal() {
        return sal;
    }

    public void setSal(Double sal) {
        this.sal = sal;
    }

    @Override
    public String toString() {
        return "Person{" +
                "Id=" + Id +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", work='" + work + '\'' +
                ", sal=" + sal +
                '}';
    }
}
